#!/bin/bash
pwd=`pwd`
cd $1
if [ -f server.tar.gz ]; then
	tar zxvf server.tar.gz
	chown -Rf www:www .
	chmod -Rf 755 .
	rm -rf server.tar.gz
	alias cp=cp
	cp -f protected/config/server.php protected/config/main.php 
	cp -f server.php index.php 
	alias cp='cp -i'
fi
